package com.zlcx.tz.live.client;


import com.zlcx.tz.live.common.config.OauthFeignConfig;
import com.zlcx.tz.live.common.config.SpringFormConfig;
import com.zlcx.tz.live.vo.ResultVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p></p>
 * <PRE>
 * <BR>    修改记录
 * <BR>-----------------------------------------------
 * <BR>    修改日期         修改人          修改内容
 * </PRE>
 *
 * @author zl
 * @version 1.0
 * @date Created in 2019/11/7 14:33
 * @copyright: Copyright (c) founders
 */
@FeignClient(name = "tz-user-diary", configuration = {OauthFeignConfig.class})
public interface UserDiaryClient {

    @PostMapping(value = "/user/diary/upload/image", produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    ResultVO uploadImg(@RequestPart("files") MultipartFile files);


}
